package com.nwpu.am.service;


import com.nwpu.am.pojo.dto.OrderCreateDTO;
import com.nwpu.am.pojo.dto.page.OrderPageDTO;
import com.nwpu.am.pojo.entity.Order;
import com.nwpu.am.result.PageResult;

import java.util.ArrayList;

public interface OrderService {
    void createOrder(OrderCreateDTO orderCreateDTO);
    ArrayList<Order> display();

    void updateOrder(OrderCreateDTO order,Long orderId);

    void orderFinished(Long orderId);

    Order findById(Long orderId);

    void deleteOrder(Long orderId);

    PageResult<Order> pageQuery(OrderPageDTO orderPageDTO);
}
